package com.example.demo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SquareController {

    @GetMapping("/square")
    public int square() {
        int number = 4;
        int square = number * number;
        return square;
    }
}


